package com.mall.malladminbackend.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.util.List;

/**
 * 作者：郭立仁
 * 描述：永无BUG
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class GridCategory {
    private Integer id;
    private String title;
    private String img;
    private String name;
    private Integer orderNum;
    private Integer online;
    private String description;
    private Date createTime;
    private Date updateTime;
    private Date deleteTime;
    private Integer categoryId;
    private Integer rootCategoryId;

    public GridCategory(Integer id, String title, String img, String name, Integer orderNum, Integer online, String description, Date createTime, Date updateTime, Date deleteTime, Integer categoryId, Integer rootCategoryId) {
        this.id = id;
        this.title = title;
        this.img = img;
        this.name = name;
        this.orderNum = orderNum;
        this.online = online;
        this.description = description;
        this.createTime = createTime;
        this.updateTime = updateTime;
        this.deleteTime = deleteTime;
        this.categoryId = categoryId;
        this.rootCategoryId = rootCategoryId;
    }

    private List<Category> categoryList;

}
